#ifndef _SEEK_WORKER_H
#define _SEEK_WORKER_H
#include <nan.h>
#include "player.h"
using namespace v8;
class SeekWorker : public Nan::AsyncWorker
{
public:
  SeekWorker(Nan::Callback *callback, Player *player, int64_t time) : AsyncWorker(callback), mPlayer(player), mTime(time)
  {
  }
  void Execute();
  void Destroy();

private:
  Player *mPlayer;
  int64_t mTime;
};

#endif